Hollis Blanchard [Tue, 6 Feb 2007 19:42:19 +0000 (13:42 -0600)]
[POWERPC][XEN] Add information into flat devtree needed to create a start_info_t structure in linux.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %F2%18u%E3%DC%0B%E8%C4%E0%DE%996%97%3C%B3UX%F6%C4%BD
Hollis Blanchard [Tue, 6 Feb 2007 19:42:19 +0000 (13:42 -0600)]
[POWERPC][XEN] Move shared page location to public header to share with libxc.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %AF%17%E1%F5%1D%23%B3%B3%1CF%B4%AC%F4%84%D3%A4s%EB%BB%F4
Jimi Xenidis [Thu, 25 Jan 2007 20:55:25 +0000 (15:55 -0500)]
[XEN][XEND][POWERPC] Don't ignore shadow memory requirement
We don't need a custom buildDomain() anymore but we do need to provide a
shadow memory calculation.
- Create PPC_LinuxImageHandler class to implement
getRequiredShadowMemory().
- Derive prose builder from PPC_LinuxImageHandlerClass.
- Drop configure() as it is not needed according to Jimi.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
--HG--
extra : transplant_source : %09%80%DF%BA%E7F%80%5CQpNb%A1%BCF%03%CD%81PA
Hollis Blanchard [Tue, 23 Jan 2007 14:54:41 +0000 (08:54 -0600)]
[POWERPC][XEN] Fix uninitialized variable warning.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %EA%0C%00o%AA%B6%8D%2C%2Aeu%0C%90%EC%88%81%F0%E0%B0%03
Jimi Xenidis [Sun, 21 Jan 2007 13:17:02 +0000 (08:17 -0500)]
[XEND][POWERPC] move ppc memory allocation to libxc. Sync XendDomainInfo.py with xen-unstable.hg.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Jimi Xenidis [Sun, 21 Jan 2007 13:15:39 +0000 (08:15 -0500)]
[XEND][POWERPC] Remove FlatDeviceTree.py, eliminate devtree from prose builder.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Jimi Xenidis [Sun, 21 Jan 2007 13:14:27 +0000 (08:14 -0500)]
[XEND][POWERPC] Move flat device tree construction from python to libxc for xc_linux_build().
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Jimi Xenidis [Sun, 21 Jan 2007 12:49:50 +0000 (07:49 -0500)]
[XEN][POWERPC] Allocate secondary VCPUs for Dom0
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
--HG--
extra : transplant_source : %1B%00%E1%28%8E%8C%A3v%D2gF%28%B1%BF%FFi%84C%DB%F2
Jimi Xenidis [Sun, 21 Jan 2007 12:47:35 +0000 (07:47 -0500)]
[XEN][POWERPC] remove redundant and confusing restart/halt messages
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
--HG--
extra : transplant_source : %D7%A6%3B%E8Y%5E%3B%7FC%5B%A2%FC3R%D6%08%9A%84%A8%5D
Jimi Xenidis [Sun, 21 Jan 2007 00:05:18 +0000 (19:05 -0500)]
[XEN][POWERPC] Print DAR and DSISR registers on CPU register dumps
The information from these register can really help track doen
problems. They are only saved on program exception, so we show what
in the CPU at time of printing as well.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
--HG--
extra : transplant_source : %B4%B7%24%9F%00%D6%062%86%D8%D7%24%0FCA%E0%8B%D2%EE%91
Jimi Xenidis [Sat, 20 Jan 2007 23:59:32 +0000 (18:59 -0500)]
[XEN][POWERPC] more ofd /cpus fixups
Correct comment on why we prune secondary processors on the devtree.
Get rid of a particularly annoying non-standard cpu property.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
--HG--
extra : transplant_source : %AEPJI%92%3C%D7%D4D%60%22%F3%00I%8D%95%27%1F%FB%D1
Jimi Xenidis [Sat, 20 Jan 2007 23:57:15 +0000 (18:57 -0500)]
[XEN][POWERPC] big lock to protect some TLB operations
970 requires locking around TLB operations, see code comment.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
--HG--
extra : transplant_source : %0AT%1BS%0Fj%91%B0%A4%DE%25%DB%25%C0%ED3%F0w%92%02
Hollis Blanchard [Fri, 19 Jan 2007 21:36:17 +0000 (15:36 -0600)]
[POWERPC][XEN] Mark heap memory based on boot_of.c's allocator.
- Explain why we have another allocator (that wasn't so hard now was it?).
- Create and export boot_of_mem_avail() to allow later code to iterate over the
allocator bitmap.
- Use boot_of_mem_avail() to place memory in the heap, instead of using globals
and making assumptions about the ordering of reserved areas.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %5B%CB%15%5E%5D%E5%7C%02%EF%3B8%D4%98%96%25%FF%AF%E3%FC%BE
Jimi Xenidis [Thu, 18 Jan 2007 00:37:20 +0000 (19:37 -0500)]
[TOOLS][POWERPC] fixes for the prose builder.
Signed-off-by: Maria Butrico <butrico@watson.ibm.com>
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
--HG--
extra : transplant_source : %C1e%86%00%05%25%F9%D9%DF%BB%E36%D9%D4X%DD%08%B4J%0E
Jimi Xenidis [Wed, 17 Jan 2007 18:18:02 +0000 (13:18 -0500)]
[XEN][POWERPC] Fix arch_set_info_guest() from upstream interface change
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Jimi Xenidis [Wed, 17 Jan 2007 18:16:55 +0000 (13:16 -0500)]
[XEN][POWERPC] add asm/nmi.h
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
--HG--
extra : transplant_source : S%27%F2%12%FC%83%DC%0D%87%85%B0%0Ez%A7Bp%E8%9A%80a
Jimi Xenidis [Mon, 15 Jan 2007 18:27:20 +0000 (13:27 -0500)]
[XEN][POWERPC] everything is "single core" right now so get cpu_core_map[] correct.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
--HG--
extra : transplant_source : Uh%EF%B4%1D%A4%2AU1%8F%A0%5D%3C%E0%AAs%E7t%E6%D1
Ryan Harper [Thu, 11 Jan 2007 19:39:27 +0000 (13:39 -0600)]
[POWERPC][LIBXC] Fix pointer math in ft_add_rsvmap(), rename string block to match DTC spec.
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %D6H%17U%AD%E6%FB%E7-%8EQ%91%91%F1%21%60%F9%2C%D5%17
Ryan Harper [Thu, 11 Jan 2007 19:39:27 +0000 (13:39 -0600)]
[POWERPC][LIBXC] Whitespace cleanup of powerpc64/xc_linux_build.c
Signed-off-by: Ryan Harper <ryanh@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : G%A4%3A%10%86G%A9%C8R4%08%C3%9A%B0Tj%B9H%3CZ
Hollis Blanchard [Wed, 3 Jan 2007 23:20:15 +0000 (17:20 -0600)]
[POWERPC][LIBXC] Add missing HVM stubs.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %5B%A9%A9%F7%D5%F4%FF%16%85%00%06%B2%A0%B2%ECC%7Cy%D9
Hollis Blanchard [Wed, 3 Jan 2007 23:11:55 +0000 (17:11 -0600)]
[POWERPC][TOOLS] Fix xc.c mismerge.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Hollis Blanchard [Wed, 3 Jan 2007 21:25:58 +0000 (15:25 -0600)]
[POWERPC][XEN] Provide _text for kexec.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %EB%19CNC%C0%B7%96%C8%14%B2%B0%91%9A%EB%3E%5E8P%C3
Jimi Xenidis [Tue, 19 Dec 2006 14:20:58 +0000 (09:20 -0500)]
[XEN][POWERPC] DomU real time clock based off of the real one in Dom0
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %DBR%C7%D0C%BB%2A%7F%3D%C6%7FO/%B4%F6I%8B%92%E5X
Jimi Xenidis [Sun, 17 Dec 2006 17:40:10 +0000 (12:40 -0500)]
[XEN][POWERPC] get cpu_*_maps correct so physinfo and affinity is accurate
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %B0N%24%DB0%8F%22%15%C6%BA%FA%F3X%D1%C1%0D%A7%9F%24O
Jimi Xenidis [Sun, 17 Dec 2006 17:36:31 +0000 (12:36 -0500)]
[XEN][POWERPC] use symbol to detect processor version
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %96%5D%3EB%DD%DA%F5%97%10%01%F7%D1r%D1%92%F9%25SvD
kfraser@localhost.localdomain [Wed, 3 Jan 2007 10:54:49 +0000 (10:54 +0000)]
Remove stray tabs.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 3 Jan 2007 10:53:45 +0000 (10:53 +0000)]
[HVM][SVM] Triple faulkts (shutdown state) causes domain reset.
Signed-off-by: Keir Fraser <keir@xensource.com>
kfraser@localhost.localdomain [Wed, 3 Jan 2007 10:01:32 +0000 (10:01 +0000)]
[HVM] Add triple-fault handler (resets the domain).
Todo: How to hook this for SVM?
Signed-off-by: Keir Fraser <keir@xensource.com>
Ian Campbell [Tue, 2 Jan 2007 14:19:47 +0000 (14:19 +0000)]
[PV-on-HVM] blkfront: use %Lu instead of %llu to xenbus_gather.
The 'll' length modifier is not available with scanf (and therefore
xenbus_gather) on older kernel versions so use 'L' which is available at
least back to 2.6.5.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ian Campbell [Tue, 2 Jan 2007 14:14:15 +0000 (14:14 +0000)]
Install hvm and arch-x86 subdirectories of xen/include/public
to /usr/include/xen.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Ewan Mellor [Tue, 2 Jan 2007 13:35:25 +0000 (13:35 +0000)]
Don't canonicalise the resource inside res_security_check if security is off.
This had broken use of relative paths to refer to ISOs etc.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Tue, 2 Jan 2007 13:32:35 +0000 (13:32 +0000)]
Fix the error handling in acm.policy.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Tue, 2 Jan 2007 13:04:01 +0000 (13:04 +0000)]
Don't lose the image settings when rebooting domains. This fixes recent HVM
reboot problems -- we were passing 0 to shadow_mem_control, because Xend was
treating the domain as PV.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Tim Deegan [Tue, 2 Jan 2007 10:57:50 +0000 (10:57 +0000)]
[HVM] Don't set the shadow allocation to zero if the dom is still shadowed.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
kaf24@localhost.localdomain [Sun, 31 Dec 2006 12:26:42 +0000 (12:26 +0000)]
[HVM] Change VCPU->LAPIC_ID mapping so that VCPU0 has ID0.
This fixes booting of older x86/64 Linux kernels.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Sun, 31 Dec 2006 11:59:47 +0000 (11:59 +0000)]
[PV-ON-HVM] Update evtchn interface to match new PV Linux interfaces.
Also fix unbind_from_irqhandler() to close event-channel port where
that is appropriate.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Sat, 30 Dec 2006 18:23:27 +0000 (18:23 +0000)]
[LINUX] Extend the event-channel interfaces to provide helper methods
for creating interdomain event channels bound to IRQ handlers.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Sat, 30 Dec 2006 15:45:13 +0000 (15:45 +0000)]
[HVM] Rationalise OEM and Creator IDs and Table Revisions.
Create virtualised IDs and use them consistently.
Signed-off-by: Keir Fraser <keir@xensource.com>
kaf24@localhost.localdomain [Sat, 30 Dec 2006 12:49:31 +0000 (12:49 +0000)]
[HVM] Minor HPET fixes/ and cleanups.
In particular, the definition of HPET_TN_SIZE_CAP is wrong.
From: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Fri, 29 Dec 2006 20:17:01 +0000 (20:17 +0000)]
Resurrect cset 13174:
766eec31afab, with one fix -- pass the fallback flag to
gettext.translation so that this module works if the message database is
missing (it's still an optional part of the build).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Steven Hand [Fri, 29 Dec 2006 18:17:56 +0000 (18:17 +0000)]
(temporarily) revert cset 13174:
766eec31afab since it seems to break 64-bit;
a proper fix will arrive in the new year.
Signed-off-by: Steven Hand <steven@xensource.com>
Steven Hand [Fri, 29 Dec 2006 17:46:40 +0000 (17:46 +0000)]
Revert cset 13181:
f087c013cf12 since the event channel is already unbound via
blkif_free() -> unbind_from_irqhandler() -> unbind_from_irq()
Signed-off-by: Steven Hand <steven@xensource.com>
kaf24@localhost.localdomain [Fri, 29 Dec 2006 16:24:57 +0000 (16:24 +0000)]
Fix libxenstore library dependencies.
Signed-off-by: Mark Johnson <mark.johnson@sun.com>
kaf24@localhost.localdomain [Fri, 29 Dec 2006 16:23:11 +0000 (16:23 +0000)]
Explicitly use GNU msgfmt on non-GNU systems.
Signed-off-by: John Levon <john.levon@sun.com>
kaf24@localhost.localdomain [Fri, 29 Dec 2006 16:17:53 +0000 (16:17 +0000)]
[SOLARIS] Fix xentop build.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Hand [Fri, 29 Dec 2006 14:25:03 +0000 (14:25 +0000)]
Minor clean ups to shadow logdirty peek / clean.
Signed-off-by: Steven Hand <steven@xensource.com>
kaf24@localhost.localdomain [Fri, 29 Dec 2006 14:12:55 +0000 (14:12 +0000)]
[HVM] Fix HPET timer to support 8-byte accesses, erroneous updates
to read-only bits, etc.
Signed-off-by: Keir Fraser <keir@xensource.com>
Steven Hand [Fri, 29 Dec 2006 13:02:19 +0000 (13:02 +0000)]
Remove unused #defines.
Signed-off-by: Steven Hand <steven@xensource.com>
Steven Hand [Fri, 29 Dec 2006 13:00:08 +0000 (13:00 +0000)]
Remove 'netbuf race' debug output - we get tons of these for ballooned
down domains, and there's no way for us to distinguish that from the
(transient) case of network buffers.
Also tidy up comment.
Signed-off-by: Steven Hand <steven@xensource.com>
Ewan Mellor [Thu, 28 Dec 2006 16:52:44 +0000 (16:52 +0000)]
Remove a few more explicit type conversions, now that stringify is fixed.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 28 Dec 2006 16:30:47 +0000 (16:30 +0000)]
Fix xmlrpclib2's stringify to cope with floats and longs, removing the need
for explicit type conversions in XendAPI.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 28 Dec 2006 16:14:48 +0000 (16:14 +0000)]
Improve the documentation of the set add/remove methods.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@localhost.localdomain [Thu, 28 Dec 2006 17:14:41 +0000 (17:14 +0000)]
[BLK] front: Fix free of event channel.
Signed-off-by: Takanori Kasai <kasai.takanori@jp.fujitsu.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
kaf24@localhost.localdomain [Thu, 28 Dec 2006 17:11:31 +0000 (17:11 +0000)]
[QEMU] Fix a number of signedness issues plus a typo in the version checking in vnc.c.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
kaf24@localhost.localdomain [Thu, 28 Dec 2006 17:09:34 +0000 (17:09 +0000)]
[HVM][VMX] Fix regs set/get decoding in VMXAssist.
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xin Li <xin.b.li@intel.com>
Ewan Mellor [Thu, 28 Dec 2006 15:54:15 +0000 (15:54 +0000)]
Add a 1-PIF-per-network limit.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 28 Dec 2006 15:52:31 +0000 (15:52 +0000)]
Format Xen-API error messages nicely.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@localhost.localdomain [Thu, 28 Dec 2006 16:55:17 +0000 (16:55 +0000)]
Revert 13107:
04c5f7b71ff4175ae387b93845bb4c83ffb5efa9.
This was preventing W2K3 from installing or booting.
kaf24@localhost.localdomain [Thu, 28 Dec 2006 16:33:15 +0000 (16:33 +0000)]
[HVM] Fix assumptions that ISA IRQ 0 connects to GSI 0.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Thu, 28 Dec 2006 15:28:45 +0000 (15:28 +0000)]
Added __repr__ implementation, initialise last_login_method to None, and
use gettext's ugettext explicitly, rather than using gettext.install. These
things together improve the error messages that you get when using this
module incorrectly in the interactive interpreter.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 28 Dec 2006 15:26:45 +0000 (15:26 +0000)]
Cope if a VIF is not attached to a network.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 28 Dec 2006 15:26:19 +0000 (15:26 +0000)]
Do not update the PV_ variables with the values outputted by the bootloader --
this gets us into all sorts of trouble when Xend is restarted and then the
domain is rebooted, because we expect to be able to handle the PV_kernel == ''
case by defaulting to pygrub.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 28 Dec 2006 15:23:31 +0000 (15:23 +0000)]
Fix return types for VBD.get_record and VIF.get_record.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 28 Dec 2006 15:00:15 +0000 (15:00 +0000)]
Fix booting caused by recent thinko.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 28 Dec 2006 12:59:58 +0000 (12:59 +0000)]
Fix reboot of PV domains when both kernel and bootloader are unspecified
(which is supposed to default to using pygrub).
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Thu, 28 Dec 2006 12:26:29 +0000 (12:26 +0000)]
Implement network.get_VIFs.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 27 Dec 2006 16:16:10 +0000 (16:16 +0000)]
Copy the xm configuration file into the distribution. Comment-out the Xen-API
configuration therein, preserving the default behaviour.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 27 Dec 2006 15:44:40 +0000 (15:44 +0000)]
Fix PV_initrd reference (should be PV_ramdisk).
Signed-off-by: Stefan Berger <stefanB@us.ibm.com>
Ewan Mellor [Wed, 27 Dec 2006 15:42:56 +0000 (15:42 +0000)]
Added network.{create,destroy}, and PIF.{create,create_VLAN,destroy}, and
a first blush at support for VLANs through Xen-API.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 27 Dec 2006 15:39:32 +0000 (15:39 +0000)]
Added Brctl.get_state, to support upcoming PIF implementation.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 27 Dec 2006 15:39:04 +0000 (15:39 +0000)]
Override logging.Logger.findCaller so that the trace function here does not
appear as the source of log messages.
Remove the logger name from the log format -- it's adding no useful information.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 27 Dec 2006 11:49:59 +0000 (11:49 +0000)]
Tidy and fix bindings for the SR class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 27 Dec 2006 00:38:01 +0000 (00:38 +0000)]
Fix HVM booting through Xen-API when the kernel is unspecified.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Wed, 27 Dec 2006 00:35:27 +0000 (00:35 +0000)]
Tidy up bindings for VDI class.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@localhost.localdomain [Tue, 26 Dec 2006 19:49:11 +0000 (19:49 +0000)]
[HVM] Route ISA IRQ 0 to IOAPIC GSI 2, just like 99% of native systems.
This is a built-in assumption of HPET 'legacy' IRQ routing, which is
why we have changed to this routing strategy now.
Signed-off-by: Keir Fraser <keir@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 19:29:05 +0000 (19:29 +0000)]
Implement VM_BAD_POWER_STATE handling.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 18:44:27 +0000 (18:44 +0000)]
Added the BAD_VM_STATE error code, and tidy up the error code section.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 17:02:16 +0000 (17:02 +0000)]
Persist the VLAN setting.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 16:56:46 +0000 (16:56 +0000)]
Fix plumbing for PIF calls. Change xen_api_success to convert None to the
empty string, to make it easier to write setters.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 16:42:24 +0000 (16:42 +0000)]
Persist network details when they change.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 16:36:48 +0000 (16:36 +0000)]
Implement network.set_{name_{label,description},default_{gateway,netmask}}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 16:32:35 +0000 (16:32 +0000)]
Implement network.get_{name_{label,description},default_{gateway,netmask}}.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 16:26:51 +0000 (16:26 +0000)]
Change the way that networks and PIFs relate to each other -- the PIF holds a
reference to the network (and the host) not the other way around. Persist only
the necessary details for the network (not the set of PIFs and VIFs).
Fix the plumbing of the network class inside XendAPI, and implement a few more
functions.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 16:24:15 +0000 (16:24 +0000)]
Cope with corrupt or empty VDI config files. Have to_record return strings
rather than integers, as required by the Xen-API spec.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 16:20:23 +0000 (16:20 +0000)]
Change the way that MESSAGE_PARAMETER_COUNT_MISMATCH is diagnosed (using a
separate dictionary to record parameter counts, rather than trying to parse them
out of the exception) and tidy up the validator preprocessing and the
validators themselves.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 15:04:28 +0000 (15:04 +0000)]
Plumb the new PIF and network implementations in through the XendAPI class.
Use the new stateful records to save host, SR, network, and PIF configuration.
Add extra functionality to the SR class, to calculate capacities et al.
By Alastair Tse <atse@xensource.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 14:59:11 +0000 (14:59 +0000)]
Added get_record method.
By Alastair Tse <atse@xensource.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 14:47:36 +0000 (14:47 +0000)]
New XendNetwork and XendPIF classes, for implementing the Xen-API network and
PIF classes.
By Alastair Tse <atse@xensource.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 14:38:25 +0000 (14:38 +0000)]
Added support for state records in Xend, for keeping storage and network
details.
By Alastair Tse <atse@xensource.com>.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Mon, 25 Dec 2006 14:32:41 +0000 (14:32 +0000)]
Adjust the argument counts for a MESSAGE_PARAMETER_COUNT_MISMATCH to account for
the fact that XenAPI adds the session handle transparently.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 23 Dec 2006 21:32:05 +0000 (21:32 +0000)]
Don't try to copy the .mo files if they haven't been built.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 23 Dec 2006 20:20:34 +0000 (20:20 +0000)]
Added retry behaviour when receiving SESSION_INVALID. This means that xm shell
and XenAPI.Session will reauthenticate across a Xend restart.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 23 Dec 2006 19:06:31 +0000 (19:06 +0000)]
Only build the message database if msgfmt is installed.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 23 Dec 2006 11:37:01 +0000 (11:37 +0000)]
Fix escaping.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 23 Dec 2006 11:24:10 +0000 (11:24 +0000)]
Added I18N support for Xen-API error codes.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Ewan Mellor [Sat, 23 Dec 2006 11:23:27 +0000 (11:23 +0000)]
Move get_by_uuid to the right place to have the input validated. The recent
move was wrong.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 23 Dec 2006 09:40:18 +0000 (09:40 +0000)]
[XEN] Add const attribute to elf_sanity_check() parameter on all arches.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
kaf24@firebug.cl.cam.ac.uk [Sat, 23 Dec 2006 09:38:07 +0000 (09:38 +0000)]
More 'const' cleanups (and fixes, for Solaris).
Signed-off-by: Keir Fraser <keir@xensource.com>
Tim Deegan [Fri, 22 Dec 2006 22:57:47 +0000 (22:57 +0000)]
[HVM] Revert cset 13103 for now, as it is causing boot errors.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
Alastair Tse [Fri, 22 Dec 2006 11:58:22 +0000 (11:58 +0000)]
[XEND] Fix parsing of bootloader and bootloader_args in XendConfig
Signed-off-by: Alastair Tse <atse@xensource.com>